2017-10-13 nginx限制只让某个ip访问 Linux安全Nginx 1234567891011server { listen 80; server_name www.aldjflas.cn; access_log /home/logs/bbs/access.log combined buffer=32k; error_log /home/logs/bbs/error.log warn; index index.html index.htm index.php; root /data/www/wwwroot/bbs; allow 219.232.244.234; deny all;} < nginx禁止某个IP或者IP段访问站点的设置方法 root账户不允许远程登陆 >